package com.math.aistudykbr.pojo.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.ai.chat.messages.MessageType;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class MyMessage implements Serializable {
    Long id = 1L;
    private String type;
    private String msg;

    public MyMessage(MessageType messageType, String msg) {
        this.type = messageType.getValue();
        this.msg = msg;
    }
}
